// <copyright file="JavascriptFunctionFormat.cs" company="YUIAsp.Net">
// Copyright (c) 2009 All Right Reserved
// </copyright>
// <author>raul popescu</author>
// <email>dev@yuiasp.net</email>
// <date>2009-01-30</date>
// <summary>YUIAsp.Net File</summary>

namespace YUIAspNet
{
    /// <summary>
    /// Format the content of a DataTable cell using a custom javascript function
    /// </summary>
    public class JavascriptFunctionFormat : IDataTableFormat
    {
        /// <summary>
        /// Gets or sets the name of the client function to call when formatting the DataTable cell.
        /// </summary>
        /// <value>The name of the client function.</value>
        public string ClientFunctionName { get; set; }

        /// <summary>
        /// Gets the format.
        /// </summary>
        /// <value>The format.</value>
        public ColumnFormat DataTableFormat
        {
            get { return ColumnFormat.JSFunction; }
        }
    }
}
